第 9 步:让我们对 Rock Smash 咒语重复相同的过程。
- 从,将Call with Parameters拖到rock_smash()函数的底部。
- 将my_function更改为calculate_damage , my_var1更改为caster ,将my_var2为"rock_smash" 。
- 我们将第二个参数传递给calculate_damage()函数来告诉它正在施放哪个咒语!
- 点击运行并尝试选择b以查看程序正在计算 Rock Smash 法术的伤害!
To navigate the page using the TAB key, first press ESC to exit the code editor.